package ch10;

/**
 * @author oldliu
 * @since 1.0
 */
public class Increase {
    public static void main(String[] args) {
        //++, --
        //前置和后置

        int a=14,b=14;
        a++;//
        ++b;//
        int c=b++;//c=15
        int d=++a;
        //后加：后置式 先操作，再自加
        System.out.println("a="+a);//15
        System.out.println("b="+b);//16
        System.out.println("c="+c);//15
        System.out.println("d="+d);//15

        int f=23;
        System.out.println(f++);
        System.out.println(f);
    }
}
